<%@ page contentType="text/html; charset=UTF-8" language="java"  %>
<!DOCTYPE HTML>
<%
 String language = request.getParameter("language");
  String target = request.getParameter("target");
  if (target != null){
	  response.sendRedirect(".?language=" + language + "&target=" + target);
  }
 %>
<html>
<head>
<meta charset="UTF-8">
<title>Set Translation Language</title>
</head>

<body>
<form name="form1" method="post" action="setTargetLanguage.jsp">
  <label for="target"><a href="<a href="http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes">Language Code</a> of language you'll be translating into</label>
  <input type="text" name="target" id="target">
  <input name="language" type="hidden" value="<%= language %>"><input name="Submit" type="submit" value="submit">
</form>
</body>
</html>